package fs.util {
	/**
	 * ...
	 * @author flyingSnow
	 */
	public final class RandomArray {
		
		public function RandomArray() {
			
		}
		static public function getIntArray(start:int,end:int):Array {
			var usedArr:Array = [];
			for (var i:int = start; i < end; i++ ) {
				usedArr.push(false);
			}
			
			var res:Array = [];
			var dRand:int = end - start;
			for (i = start; i < end; i++ ) {
				var randInt:int = Math.random() * dRand;
				while (usedArr[randInt] == true) {
					randInt = (randInt + 1) % dRand;
				}
				res.push(randInt);
				usedArr[randInt] = true;
			}
			return res;
		}
	}

}